﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurityList.aspx.cs" Inherits="Portal.SecurityList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        function openDetail(id) {
            window.location.href = "SecurityDetail.aspx";
            //returnValue = window.showModalDialog("PermissionDetail.aspx", "detail", "dialogWidth:800px;dialogHeight:600px");
            return false;
        }
    </script>
</head>
<body>
<script type="text/javascript">
    function confirmDelete() {
        return confirm("<%=SecurityList_ConfirmDelete %>");
    }
</script>
    <form id="form1" runat="server">
    <fieldset>
        <legend style=" margin-bottom:5px;"><%=Portal.Resources.lang.SecurityList %><span class="right">
        <asp:Button ID="btnAdd" runat="server" Text="新增"
            CssClass="btn btn-primary" OnClientClick="return openDetail();" style="display:none;" />&nbsp</span></legend>
           <div style="margin-bottom:5px;">
            <asp:TextBox ID="txtMenuName" runat="server"></asp:TextBox> 
            <asp:Button ID="btnQuery" CssClass="btn" runat="server" Text="查询" 
                onclick="btnQuery_Click" />
           </div>
        <table class="table table-hover table-bordered table-condensed">
            <thead>
                <tr>
                    <th>
                        <%=Portal.Resources.lang.SecurityList_Name %>
                    </th>
                    <th style=" display:none;">
                        <%=Portal.Resources.lang.SecurityList_Member %>
                    </th>
                    <th>
                        <%=Portal.Resources.lang.SecurityList_Edit %>
                    </th>
                    <th style=" display:none;">
                        <%=Portal.Resources.lang.SecurityList_Delete %>
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("CNName")%>
                            </td>
                            <td style=" display:none;">
                                <%#Eval("Ext07")%>
                            </td>
                            <td>
                            <a href='SecurityDetail.aspx?ResourceId=<%#Eval("ResourceId") %>'><%=Portal.Resources.lang.SecurityList_Edit %></a>
                            </td>
                            <td style=" display:none;">
                                <asp:LinkButton ID="lbDelete" runat="server" OnClientClick="return confirmDelete();" CommandArgument='<%#Eval("ResourceId") %>' CommandName="Delete"><%=Portal.Resources.lang.SecurityList_Delete %></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div id="pagelist">
        <span
                class="right">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="Count %RecordCount%"
                    Width="100%" CssClass="aspNetPager" OnPageChanged="AspNetPager1_PageChanged"
                    AlwaysShow="true">
                </webdiyer:AspNetPager></span>
    </div>
    </fieldset>
    <div style="display: none">
    </div>
    </form>
    <script type="text/javascript">
        $(document).ready(function () {
            parent.document.getElementById('frmContent').height = document.body.clientHeight;
        });
    </script>
    
</body>
</html>
